import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/test',
  //   component: () => import("@/views/test.vue")
  // },
  {
    path: '/',
    name: '主页面',
    component: () => import('@/views/Home'),
    redirect: '/torch',
    children: [{
        path: '/torch',
        name: 'Torch',
        component: () => import('@/views/Torch')
      }, {
        path: '/jxl',
        name: 'Jxl',
        component: () => import('@/views/Jxl')
      }, {
        path: '/yry',
        name: 'Yry',
        component: () => import('@/views/Yry')
      }, {
        path: '/zhl',
        name: 'Zhl',
        component: () => import('@/views/Zhl'),
      },
      // {
      //   path: '/jxl_floor1',
      //   name: 'JxlFloor1',
      //   component: () => import('@/views/jxl/Floor1')
      // }, {
      //   path: '/jxl_floor2',
      //   name: 'JxlFloor2',
      //   component: () => import('@/views/jxl/Floor2')
      // }, {
      //   path: '/jxl_floor34',
      //   name: 'JxlFloor34',
      //   component: () => import('@/views/jxl/Floor34')
      // }, {
      //   path: '/jxl_floor5',
      //   name: 'JxlFloor5',
      //   component: () => import('@/views/jxl/Floor5')
      // },
      // {
      //   path: '/zhl_floor1',
      //   name: 'ZhlFloor1',
      //   component: () => import('@/views/zhl/Floor1')
      // }, {
      //   path: '/zhl_floor2',
      //   name: 'ZhlFloor2',
      //   component: () => import('@/views/zhl/Floor2')
      // }, {
      //   path: '/zhl_floor3',
      //   name: 'ZhlFloor3',
      //   component: () => import('@/views/zhl/Floor3')
      // }, {
      //   path: '/yry_floor1',
      //   name: 'YryFloor1',
      //   component: () => import('@/views/yry/Floor1')
      // }, {
      //   path: '/yry_floor2',
      //   name: 'YryFloor2',
      //   component: () => import('@/views/yry/Floor2')
      // }, {
      //   path: '/yry_floor3',
      //   name: 'YryFloor3',
      //   component: () => import('@/views/yry/Floor3')
      // }, {
      //   path: '/yry_floor4',
      //   name: 'YryFloor4',
      //   component: () => import('@/views/yry/Floor4')
      // }
      {
        path: '/tsjs_a301',
        name: 'TsjsA301',
        component: () => import('@/views/tsjs/A301')
      }, {
        path: '/tsjs_a303',
        name: 'TsjsA303',
        component: () => import('@/views/tsjs/A303')
      },
      {
        path: '/tsjs_zxjf',
        name: 'TsjsZxjf',
        component: () => import('@/views/tsjs/Zxjf')
      },
      {
        path: '/tsjs_jplbs',
        name: 'TsjsJplbs',
        component: () => import('@/views/tsjs/Jplbs')
      },
      {
        path: '/tsjs_hdlbs',
        name: 'TsjsHdlbs',
        component: () => import('@/views/tsjs/Hdlbs')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
